package server.comunicaciones;

import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Vector;
import java.sql.SQLException;

import client.comunicaciones.IJugador;


/**
 * @author Administrador
 */
public interface IServer extends Remote {

	public void poner(String id, byte idCuadricula, byte fila, byte columna, byte numero) throws RemoteException ;		

	public void quitar(String id, byte idCuadricula, byte fila, byte columna) throws RemoteException ;
	
	public void guardar(String sudoku) throws Exception ;

	public String getSudoku(IJugador jugador, String idSudoku, String idJugador) throws Exception ;

	public java.util.Vector<String> getSudokus() throws RemoteException, SQLException, Exception ;
	
	public void conectar(int tipoPersistencia, String text) throws MalformedURLException, RemoteException;

	public void desconectar() throws RemoteException, MalformedURLException, NotBoundException;
}